const BASE = `https://h5.mcake.com`
export function $http(url,method="GET"){
	return new Promise((resolve,reject)=>{
		uni.request({
			url:BASE+url,
			method,
			header:{
				'access-token': 'ecb30062e0322c708ce172f6c4dda377',
				version: 'v1.0'
			},
			success: (res) => {
				resolve(res)
			},
			fail: (err) => {
				reject(err)
			}
		})
	})
}
